<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="core" %>

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>eWiki</title>
            <link rel="stylesheet" media="screen" type="text/css" title="Design" href="../design.css"/>
        </head>
        <body>
            <div class="entete">
                    <div id="location">
                        <% out.print(session.getAttribute("rubrique")); %>
                    </div>
                    <div id="logo">
                        eWiki
                    </div>
                <div id="info">
                    <%=new SimpleDateFormat("dd/MM/yyyy").format(new Date()) %>
                     at : <%=new SimpleDateFormat("HH:mm:ss").format(new Date()) %>
                </div>
            </div>
            <div id="menu">
                <table>
                <tr>
                    <td>
                        <form action="Home" method="POST">
                            <input type="submit" value="Home" class="bouton"/>
                        </form>
                    </td>
                    <td>
                        <form action="View" method="POST">
                            <input type="submit" value="View" class="bouton"/>
                        </form>
                    </td>
                    <td>
                        <form action="Edit" method="POST">
                            <input type="submit" value="Edit" class="bouton"/>
                        </form>
                    </td>
                    <td>
                        <form action="History" method="POST">
                            <input type="submit" value="History" class="bouton"/>
                        </form>
                    </td>
                </tr>
                </table>
            </div>
            <div id="sidebar">
                SideBar
            </div>
            <div id="page">
                <% if(session.getAttribute("rubrique")=="edit") {%>
                     <%@include file="edit.jsp" %>
                <% } else if(session.getAttribute("rubrique")=="used") {%>
                     <%@include file="used.jsp" %>
                <% } else if(session.getAttribute("rubrique")=="edit") {%>
                     <%@include file="view.jsp" %>
                <% } else if(session.getAttribute("rubrique")=="edit") {%>
                     <%@include file="history.jsp" %>
                <% } %>
            </div>
        </body>
    </html>